package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanSendInstitutionFlow {
	
	public static final String IS_VALID = "1";
	public static final String IS_NOTVALID = "2";
	
    private Long id;
    private Long applyId;
    private String serviceInstitutionId;
    private Integer operAdminId;
    private String operIp;
    private String type;
    private String remark;
    private Date createDt;
    private Date updateDt;
    private String isValid;
    private String state;
    private Date newCreateDt;
    private String serviceInstitutionName;
    private String adminName;
    private Integer bettwnTime;//派发时间和现在时间相差的天数
    

	public Date getNewCreateDt() {
		return newCreateDt;
	}

	public void setNewCreateDt(Date newCreateDt) {
		this.newCreateDt = newCreateDt;
	}

	public Integer getBettwnTime() {
		return bettwnTime;
	}

	public void setBettwnTime(Integer bettwnTime) {
		this.bettwnTime = bettwnTime;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	public String getServiceInstitutionName() {
		return serviceInstitutionName;
	}

	public void setServiceInstitutionName(String serviceInstitutionName) {
		this.serviceInstitutionName = serviceInstitutionName;
	}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public String getServiceInstitutionId() {
        return serviceInstitutionId;
    }

    public void setServiceInstitutionId(String serviceInstitutionId) {
        this.serviceInstitutionId = serviceInstitutionId == null ? null : serviceInstitutionId.trim();
    }

    public Integer getOperAdminId() {
        return operAdminId;
    }

    public void setOperAdminId(Integer operAdminId) {
        this.operAdminId = operAdminId;
    }

    public String getOperIp() {
        return operIp;
    }

    public void setOperIp(String operIp) {
        this.operIp = operIp == null ? null : operIp.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public String getIsValid() {
        return isValid;
    }
    
    public void setIsValid(String isValid) {
        this.isValid = isValid == null ? null : isValid.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanSendInstitutionFlow)) {
            return false;
        }
        LoanSendInstitutionFlow other = (LoanSendInstitutionFlow) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getServiceInstitutionId() == null ? other == null : this.getServiceInstitutionId().equals(other.getServiceInstitutionId())
            && this.getOperAdminId() == null ? other == null : this.getOperAdminId().equals(other.getOperAdminId())
            && this.getOperIp() == null ? other == null : this.getOperIp().equals(other.getOperIp())
            && this.getType() == null ? other == null : this.getType().equals(other.getType())
            && this.getRemark() == null ? other == null : this.getRemark().equals(other.getRemark())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getIsValid() == null ? other == null : this.getIsValid().equals(other.getIsValid())
            && this.getState() == null ? other == null : this.getState().equals(other.getState());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getServiceInstitutionId() != null) {
            hash *= getServiceInstitutionId().hashCode();
        }
        if (getOperAdminId() != null) {
            hash *= getOperAdminId().hashCode();
        }
        if (getOperIp() != null) {
            hash *= getOperIp().hashCode();
        }
        if (getType() != null) {
            hash *= getType().hashCode();
        }
        if (getRemark() != null) {
            hash *= getRemark().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getIsValid() != null) {
            hash *= getIsValid().hashCode();
        }
        if (getState() != null) {
            hash *= getState().hashCode();
        }
        return hash;
    }
}